export default (url, data = {}, method = 'GET') =>{
  return new Promise((reslove, reject) => {
    wx.request({
      url: 'http://localhost:3000' + url,
      data,
      method,
      success: (res) => {
        reslove(res)
      },
      fail: (err) => {
        reject(err)
      }
    })
  })


}